package com.itheima.mianshiti;

public class MianShiTi {
    public static void main(String[] args) {
        Zi zi = new Zi();
        Zi zi1 = new Zi();
    }
}
//A D BC EF
//BC EF
//父优先于子
//静态优先于非静态
//构造代码块优先于构造方法
//静态只加载一次
class Fu{
    static {
        System.out.println("A");
    }
    {
        System.out.println("B");

    }
    public Fu(){
        System.out.println("C");
    }
}
class  Zi extends Fu{
    static {
        System.out.println("D");
    }
    {
        System.out.println("E");

    }
    public Zi(){
        System.out.println("F");
    }
}
